<%-- 
    Document   : header
    Created on : 02-déc.-2011, 23:58:32
    Author     : laurent
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<fmt:setBundle basename="packageLanguage.lang" scope="session"/>
<title><fmt:message key = "textWindowHome"/></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/tempstyle.css" rel="stylesheet" type="text/css" media="screen" />
    

</head>
<body>
    
	<div id="logo">
            
                <div class="headerrightlinks">
                    <h1>BricoWeb</h1>
                </div>
            
	</div>
    
	<hr />
	<!-- end #logo -->
	<div id="header">
            
 		<div id="userpanel">
                    <a href="basket.jsp"><img src="images/shopping_cart.png" width="20"/>&nbsp;<fmt:message key = "textHeaderBasket"/></a>&nbsp;|&nbsp;
                    <c:if test = "${not empty sessionScope.basket.user}" > <!-- Si utilisateur identifié -->  
                            <a href="LogoutController"><fmt:message key = "textHeaderLogout"/></a>
                    </c:if >
                    
                    <c:if test = "${empty sessionScope.basket.user}" > <!-- Si utilisateur pas identifié -->
                            <a href="login.jsp"><fmt:message key = "textHeaderConnect"/></a>&nbsp;|&nbsp;
                            <a href="register.jsp"><fmt:message key = "textHeaderRegister"/></a>                        
                    </c:if> 
		</div>
                    
		<!-- end #connection menu -->
                
	</div>
                        
</body>
</html>